From 80941582364f853e89e49f9d2010800fac769f41 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Thu, 21 Aug 2008 08:14:32 +0000 Subject: [PATCH] gnav_trl: Fix compiler warning. Switch to ff_type_file. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3373 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gnav_trl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/gnav_trl.c b/gpsbabel/gnav_trl.c index 571f8da06..c2cf80970 100644 --- a/gpsbabel/gnav_trl.c +++ b/gpsbabel/gnav_trl.c @@ -71,7 +71,7 @@ static double read_altitude(const gbuint32 alt) { const void *p = &alt; - unsigned char *i = p; + unsigned char *i = (unsigned char *) p; gbuint32 res = (gbuint32)i[2] << 24 | (gbuint32)i[1] << 16 | (gbuint32)i[0] << 8 | (gbuint32)i[3]; return le_read_float(&res); } @@ -81,7 +81,7 @@ write_altitude(const float alt) { gbuint32 res; const void *p = &res; - unsigned char *i = p; + unsigned char *i = (unsigned char *)p; le_write_float(&res, alt); res = (gbuint32)i[0] << 24 | (gbuint32)i[3] << 16 | (gbuint32)i[2] << 8 | (gbuint32)i[1]; return res; @@ -137,7 +137,7 @@ gnav_trl_write(void) /**************************************************************************/ ff_vecs_t gnav_trl_vecs = { - ff_type_internal, + ff_type_file, { ff_cap_none /* waypoints */, ff_cap_read | ff_cap_write /* tracks */, -- 2.30.2